import Header from './header.tpl'
import { tplReplace } from '../../utils/tools'
export default  {
   name:'header',
   tpl(option){
       let {url,title,showLeftIcon,showRightIcon}=option
     return tplReplace(Header,{
         url,
         title,
         showLeftIcon: showLeftIcon ? 'block' : 'none',
         showRightIcon: showRightIcon ? 'block' : 'none'
      })
   }
}